<script>
	import initApp from './api/init.js'
	export default {
		onLaunch: function() {
			initApp();
		},
		onShow: function() {
			console.log('App Show')
			if(!uni.getStorageSync('token') && uni.getStorageSync('token').length!==32){
				uni.navigateTo({
					url:"/pages/login/login"
				})
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
@import "uview-ui/index.scss";
@import "./common/animate.min.css";
/deep/ .uni-page-head{display: flex; justify-content: flex-start;}
</style>
